package com.ziqing.apeletnews.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.TextView;

import com.ziqing.apeletnews.R;
import com.ziqing.apeletnews.base.BaseAdapter;
import com.ziqing.apeletnews.base.BaseViewHolder;

import java.util.List;

/**
 * Created by YYJ on 2018/4/28.
 */

public class CityAdapter extends BaseAdapter<String> {
    public CityAdapter(@NonNull Context mContext, @NonNull List<String> listData, int layoutId) {
        super(mContext, listData, layoutId);
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, String data, int position) {
        TextView tv_city = holder.getView(R.id.tv_city);
        tv_city.setText(data);
    }

}
